home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Libraries / Views / Sources / Dialog.r next >
Encoding:
Text File  |  1996-04-03  |  2.3 KB  |  108 lines  |  [TEXT/MPS ]

  1. /*
  2.     Dialog.r
  3.     MacApp® Resources for UDialog
  4.     Copyright © 1985-96 by Apple Computer, Inc. All rights reserved.
  5. */
  6.  
  7. /* • Auto-Include the requirements for this source */
  8. #ifndef __TYPES_R__
  9. #include "Types.r"
  10. #endif
  11.  
  12. #ifndef __MacAppTypes__
  13. #include "MacAppTypes.r"
  14. #endif
  15.  
  16. #ifndef __ViewTypes__
  17. #include "ViewTypes.r"
  18. #endif
  19.  
  20.  
  21. #define        phInvalidValue            300
  22. #define        kInvalidValueReasons    300
  23. #define        kDialogTEViewID            300
  24.  
  25. #if qTemplateViews
  26. resource 'View' (kDialogTEViewID,
  27. #if qNames
  28. "kDialogTEViewID",
  29. #endif
  30.     purgeable) {MAThreeOh, 
  31.     {
  32.     ViewSignatureAndClassname
  33.         {'tevw', 153, "TDialogTEView", noID, enabled, 0, {}, MAThreeOh, 
  34.         {0, 0}, {0, 0}, sizeRelSuperView, sizeVariable, shown, wantsToBeTarget, 
  35.         handlesCursor, letsSubViewsHandleCursor, 1, 
  36.         handlesHelp, letsSubViewsHandleHelp, noHelpID, 1, 
  37.         NoDrawingEnvironment {}, 
  38.         AdornerListSignatureAndClassname {NoIdentifier, AdornerList, AdornerElementSize, AdornerElementSizeShift, DynamicArrayAllocationIncrement, {
  39.             DrawView, AdornerLocalObject {SelectionAdorner}, 
  40.             DrawView, AdornerLocalObject {DrawAdorner}}}, emptyUserArea, 
  41.         TEView {withoutStyle, crOnly, acceptChanges, freeText, cTyping, unlimited, noInset, justSystem, kSystemFontTextStyle, dontPreferOutline}, 
  42.         NoSubviews}
  43.     }
  44. };
  45. #endif qTemplateViews
  46.  
  47.  
  48. resource 'STR#' (kInvalidValueReasons,
  49. #if qNames
  50.     "kInvalidValueReasons",
  51. #endif
  52.     purgeable) {
  53.     {    /* [1] */    "Invalid value";
  54.         /* [2] */    "The value is less than the allowed minimum";
  55.         /* [3] */    "The value is greater than the allowed maximum";
  56.         /* [4] */    "The value contains non-numeric characters";
  57.         /* [5] */    "The value contains too many characters";
  58.     }
  59. };
  60.  
  61. resource 'DITL' (phInvalidValue,
  62. #if qNames
  63.     "phInvalidValue",
  64. #endif
  65.     purgeable) {
  66.     {    /* array DITLarray: 3 elements */
  67.         /* [1] */
  68.         {55, 288, 75, 348},
  69.         Button {
  70.             enabled,
  71.             "OK"
  72.         };
  73.         /* [2] */
  74.         {10, 75, 42, 348},
  75.         StaticText {
  76.             disabled,
  77.             "^0; previous value substituted."
  78.         };
  79.         /* [3] */
  80.         {10, 20, 42, 52},
  81.         Icon {
  82.             disabled,
  83.             stopIcon
  84.         }
  85.     }
  86. };
  87.  
  88. resource 'ALRT' (phInvalidValue,
  89. #if qNames
  90.     "phInvalidValue",
  91. #endif
  92.     purgeable) {
  93.     {90, 100, 175, 458},
  94.     phInvalidValue,
  95.     {    /* array: 4 elements */
  96.         /* [1] */
  97.         OK, visible, silent;
  98.         /* [2] */
  99.         OK, visible, silent;
  100.         /* [3] */
  101.         OK, visible, silent;
  102.         /* [4] */
  103.         OK, visible, silent
  104.     },
  105.     alertPositionMainScreen
  106. };
  107.  
  108.